package com.analysis.entity;

import java.time.LocalDateTime;

/**
 * 项目表实体
 */
public class Project {
    private Long id;
    private Long userId;
    private Long companyId;
    private String projectName;
    private LocalDateTime created;
    private LocalDateTime modified;
    private Integer enableStatus;
    private Integer isSelected;

    // 构造函数
    public Project() {}

    public Project(Long userId, String projectName) {
        this.userId = userId;
        this.projectName = projectName;
    }

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public LocalDateTime getCreated() {
        return created;
    }

    public void setCreated(LocalDateTime created) {
        this.created = created;
    }

    public LocalDateTime getModified() {
        return modified;
    }

    public void setModified(LocalDateTime modified) {
        this.modified = modified;
    }

    public Integer getEnableStatus() {
        return enableStatus;
    }

    public void setEnableStatus(Integer enableStatus) {
        this.enableStatus = enableStatus;
    }

    public Integer getIsSelected() {
        return isSelected;
    }

    public void setIsSelected(Integer isSelected) {
        this.isSelected = isSelected;
    }

    @Override
    public String toString() {
        return "Project{" +
                "id=" + id +
                ", userId=" + userId +
                ", projectName='" + projectName + '\'' +
                ", created=" + created +
                ", modified=" + modified +
                ", enableStatus=" + enableStatus +
                ", isSelected=" + isSelected +
                '}';
    }
}
